package ferp.center.server.poll;

import ferp.core.game.Settings;
import ferp.poll.Poll;

import java.util.List;

/**
 * User: olegs
 * Date: 11/05/2014 10:27
 */
public class Polls
{
  public static final long ID = 11;
  public static boolean enabled = true;

  public static Poll get(Settings.Locale locale, long lastPollID)
  {
    if (lastPollID < ID)
      return (locale == Settings.Locale.RUSSIAN ? russian : english);

    return null;
  }

  public static List<String> answers() {return answers;}

  private static final Poll english = new OnlineAppVersion().create(ID, new OnlineAppVersion.English());
  private static final Poll russian = new OnlineAppVersion().create(ID, new OnlineAppVersion.Russian());
  private static final List<String> answers = english.keys();
}
